-- GENERATED SPELL FOR [Magram Wrangler] --


function spell0_4640(pUnit, Event) --@Net,n/a--
pUnit:FullCastSpellOnTarget(6533,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4640', 2267, 1)
end

function Sorts_4640(pUnit, Event)
local choix_sorts_4640 = math.random(0, 0)
if choix_sorts_4640 == 0 then
pUnit:RegisterEvent('spell0_4640', 1, 1)
end
end

function mob4640_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4640', math.random(1500, 3000), 1)
end

function mob4640_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4640_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4640_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4640, 1, 'mob4640_Action')
RegisterUnitEvent(4640, 2, 'mob4640_Leave')
RegisterUnitEvent(4640, 3, 'mob4640_Kill')
RegisterUnitEvent(4640, 4, 'mob4640_Die')
